export default {
    props: {
        method: {
            type: String
        }
    },
    data() {
        return {
            methods: [
                "GET",
                "POST",
                "PUT",
                "DELETE",
                "HEAD",
                "OPTIONS",
                "PATCH"
            ]
        }
    },
    emits: [
        'update:method'
    ],
    template: `
        <div>
            <div>Метод</div>
            <div class="wa-select">
                <select v-model="method" @input="$emit('update:method',$event.target.value)">
                    <option v-for="m in methods" :key="m" :value="m">
                        {{m}}
                    </option>
                </select>
            </div>
        </div>
    `
}
